<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="__BOOTSTRAP__/css/bootstrap-theme.min.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/msg.css"/>


    <script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__JS__/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="__JS__/jquery.iframe-transport.js"></script>
    <script type="text/javascript" src="__JS__/jquery.fileupload.js"></script> 
    <script type="text/javascript" src="__BOOTSTRAP__/js/bootstrap.min.js"></script>

    <script type="javascript">
        $('#myTab a').click(function (e) {
            e.preventDefault()
            $(this).tab('show')
        })
    </script>

   <script type="text/javascript">
    jQuery(document).ready(function($) {
        $("#upload").fileupload({
            url:"{:U('User/uploadImg')}",
            done:function(e,result){
            //  alert("上传成功");
                var info = result.result.info;
                var path = result.result.path;
                alert(info);
                // alert(path);
                $('#a').val(path);
                $("#benren").attr('src', '.' + path);
                console.log(JSON.stringify(result.result));
            }
        })
    });
    </script>
</head>
<body>

<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs" id="table">
    <ul id="myTab" class="nav nav-tabs" role="tablist">
        <li role="presentation" class="active"><a href="#profile" id="home-tab" role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">修改密码</a></li>
    </ul>
    <div id="myTabContent" class="tab-content home">
        <div role="tabpanel" class="tab-pane fade in active" id="home" aria-labelledBy="home-tab">
          <form action="{:U('User/passHandle')}" method="post">
                
                <table class="table table-bordered table-hover">
                
                    <tr>
                        <td>原密码：</td>
                        <td><input type="password" class="form-control" name="password"></td>
                    </tr>
                    <tr>
                        <td>新密码：</td>
                        <td><input type="password" class="form-control" name="passwd"></td>
                    </tr>   
                    <tr>
                        <td>重复新密码:</td>
                        <td><input type="password" class="form-control" name="repasswd"></td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <input type="submit" class="btn btn-primary">    
                        </td>
                    </tr>
                </table>

            </form>
        </div>
    </div>
</div>

</body>
</html>